package com.software.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author wyj
 * @since 2024-04-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_cart")
public class CartBean implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("customer_id")
    private Integer customerId;
    @TableField(exist = false)
    private CustomerInfoBean customerInfoBean;

    @TableField("product_id")
    private Integer productId;
    @TableField(exist = false)
    private ProductBean productBean;

    /**
     * 数量，均为1
     */
    @TableField("count")
    private Integer count;

    /**
     * 加购事件
     */
    @TableField("time")
    private Date time;

    /**
     * 状态选择
     */
    @TableField("status")
    private Integer status;


}
